Package-level declarations
Types
Link copied to clipboard
Callback for progress notifications.
Link copied to clipboard
abstract class Protocol<SendRequestT : Request, SendNotificationT : Notification, SendResultT : RequestResult>(_options: ProtocolOptions?)
Implements MCP protocol framing on top of a pluggable transport, including features like request/response linking, notifications, and progress.
Link copied to clipboard
open class ProtocolOptions(var enforceStrictCapabilities: Boolean = false, var timeout: Duration = DEFAULT_REQUEST_TIMEOUT)
Additional initialization options.
Link copied to clipboard
class ReadBuffer
Buffers a continuous stdio stream into discrete JSON-RPC messages.
Link copied to clipboard
class RequestHandlerExtra
Extra data given to request handlers.
Link copied to clipboard
data class RequestOptions(val onProgress: ProgressCallback? = null, val timeout: Duration = DEFAULT_REQUEST_TIMEOUT)
Options that can be given per request.
Link copied to clipboard
Abstract class representing a WebSocket transport for the Model Context Protocol (MCP). Handles communication over a WebSocket session.